function HandleDialogMethod(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

HandleDialogMethod.prototype._createElements = function() {
  var _self = this;

  this._gui.hardcopy.checked = true;
  this._item._method = 'hardcopy';
  this._gui.hardcopy.onclick = function() { _self._item._method = 'hardcopy';
                                            _self._gui.text.value = '';
                                          };
  this._gui.email.onclick = function() { _self._item._method = 'email';
                                         _self._gui.text.value = '';
                                       };
  if (this._item && this._item.how == 'email') {
    this._gui.email.checked = true;
    this._item._method = this._item.how;
  }
  
  this._gui.other.onclick = function() { _self._item._method = _self._gui.text.value; };
  this._gui.text.onclick = function() { _self._gui.other.click();
                                        this.focus();
                                      };
  this._gui.text.onchange = function() { _self._item._method = this.value; };
  if (this._item && this._item.how != 'hardcopy' && this._item.how != 'email' && this._item.how != '') {
    this._gui.other.checked = true;
    this._gui.text.value = this._item.how;
    this._item._method = this._item.how;
  }
};